<?php
/**
 * Created by PhpStorm.
 * User: ysk
 * Date: 2021/6/18
 * Time: 15:26
 */

namespace api\modules\v1\controllers;

use api\base\BaseApiController;
use api\modules\v1\test\actions\Ping\PingAction;
use api\modules\v1\test\actions\Test\TestAction;
use yii\helpers\ArrayHelper;

/**
 *
 * @SWG\Tag(
 *   name="test",
 *   description="测试模块",
 *   @SWG\ExternalDocumentation(
 *     description="",
 *     url="http://api.xuan.com/"
 *   )
 * )
 */

class TestController extends BaseApiController {


    public function actions()
    {
        return ArrayHelper::merge(parent::actions()
            , [
                'ping'        => PingAction::class,      // ping
                'test'        => TestAction::class,      // test
            ]);
    }

}
